package com.qhsx.asset.mapper;

import com.qhsx.asset.domain.AssetProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 无形资产Mapper接口
 *
 * @author yepanpan
 * @date 2021-03-05
 */
public interface AssetProductMapper {

    int insertBach(@Param("dataList") List<AssetProduct> dataList);


    Long selectIdByHandle(@Param("handle")String handle);

    AssetProduct selectByHandle(@Param("handle")String handle);


    List<AssetProduct> list(@Param("assetProduct")AssetProduct assetProduct);


    List<AssetProduct> getByMaterialId(@Param("materialId")Long  materialId);


    /** 出库
     * @param upadteBy /
     * @param handle 标识
     * @return 结果
     */
    int leave(@Param("updateBy") String upadteBy,@Param("handle") String handle);

    List<AssetProduct> selectByIds(@Param("ids")List<Long> ids);

    int updateBach(@Param("dataList") List<AssetProduct> dataList);


    Long getLastProduct();

}
